package com.webchat.chat.model;

import com.webchat.chat.core.tools.BaseModel;

import javax.persistence.Column;
import java.io.Serializable;

public class Tenant extends BaseModel implements Serializable {


    /**
     * 租户代号
     */
    @Column(name = "TENANT_CODE")
    private String tenantCode;

    /**
     * 是否启用
     */
    @Column(name = "IS_ENABLE")
    private Boolean isEnable;

    /**
     * 是否启用
     */
    @Column(name = "SOCKET_URL")
    private String socketUrl;



    /**
     * 背景色
     */
    @Column(name = "BACK_GROUND")
    private String backGround;

    /**
     * 主色调
     */
    @Column(name = "PRIMARY_COLOR")
    private String primaryColor;

    /**
     * 秘钥
     */
    @Column(name = "SECRET_KEY")
    private String secretKey;

    /**
     * 服务标题
     */
    @Column(name = "SERVICE_TITLE")
    private String serviceTitle;

    /**
     * 通信码
     */
    @Column(name = "CHAT_CODE")
    private String chatCode;

    public Boolean isEnable() {
        return isEnable;
    }

    public void setEnable(Boolean enable) {
        isEnable = enable;
    }



    public String getSocketUrl() {
        return socketUrl;
    }

    public void setSocketUrl(String socketUrl) {
        this.socketUrl = socketUrl;
    }



    public Tenant(String tenantCode, String chatCode) {
        this.tenantCode = tenantCode;
        this.chatCode = chatCode;
    }

    public String getServiceTitle() {
        return serviceTitle;
    }

    public void setServiceTitle(String serviceTitle) {
        this.serviceTitle = serviceTitle;
    }


    public String getBackGround() {
        return backGround;
    }

    public void setBackGround(String backGround) {
        this.backGround = backGround;
    }

    public String getPrimaryColor() {
        return primaryColor;
    }

    public void setPrimaryColor(String primaryColor) {
        this.primaryColor = primaryColor;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }


    /**
     * 获取租户代号
     *
     * @return TENANT_CODE - 租户代号
     */
    public String getTenantCode() {
        return tenantCode;
    }

    /**
     * 设置租户代号
     *
     * @param tenantCode 租户代号
     */
    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public String getChatCode() {
        return chatCode;
    }

    public void setChatCode(String chatCode) {
        this.chatCode = chatCode;
    }

    public Tenant() {
    }
}